package com.aires.testspringioccontainer;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @program: spring
 * @description:
 * @author: fan zhengxiang
 * @create: 2020-10-17 01:42
 */
@Configuration
@ComponentScan(basePackages = {"com.aires.testspringioccontainer.config"})
public class UserConfig {
	 
	@Bean
	public User user(){
		return new User("001","smart哥");
	}
}